# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py3-pkginfo
pkgver=1.9.6
pkgrel=1
pkgdesc="Parses metadata stored by distutils in PKG-INFO"
url="https://code.launchpad.net/~tseaver/pkginfo"
arch="noarch"
license="MIT"
depends="python3"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/pkginfo/pkginfo-$pkgver.tar.gz
	disable-failing-test.patch
	dont-package-tests.patch
	"
builddir="$srcdir/pkginfo-$pkgver"
options="!check" # test command missing

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
07d9b8ce9965572b84ddced107aa1fcd2ed20a485580f87d667bd53508b0a8fc3aef2ca900bf8bb7fc075b95a81512920c4eef513c9ee6582d61b09968efee08  pkginfo-1.9.6.tar.gz
3eb9d1fe871b312f75b96158fa59f25a4533ac23873042776c129fa9489bc1e16883e4e2bef6401b283b8479b0cf86c4b49a5400c261ebea106bc01233881198  disable-failing-test.patch
7a5752ff90959db45c4285d4a79a8a643ea2d90e81d137792dd3b487191d74adab85969cae0041981e7ae164926c0226a413f615473fc2b82f84aa8b714caf80  dont-package-tests.patch
"
